package cn.itcast.service.cargo.impl;

import cn.itcast.dao.cargo.DataDictDao;
import cn.itcast.domain.cargo.DataDict;
import cn.itcast.service.cargo.DataDictService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(timeout = 200000)
public class DataDictServiceImpl implements DataDictService {
    @Autowired
    private DataDictDao dataDictDao;
    @Override
    public List<DataDict> findAll(String type) {
        return dataDictDao.findAll(type);
    }

/*    *//**
     * 按类型查询字典数据
     *
     * @param type
     * @return
     *//*
    public List<DataDict> findAllByType(String type) {
        List<DataDict> dataDictList = dataDictDao.findAllByType(type);
        return dataDictList;
    }*/
}
